
/*
*
* 自定义插件
* */

import Footer from '@/components/layout/footer.vue'

const myPlugin = {
  install(app, options) {
    console.log(app, options)
    //全局自定义指令
    app.directive('focus', el => el.focus())

    //全局变量
    app.provide('name', 'zhangsan')

    //全局组件
    app.component('myFooter',Footer)
  },
};

export default myPlugin;
